X = [1 2 3 4; 5 6 7 8; 9 10 11 12]
Y = num2cell(X)
Z= num2cell(X,2)
M = num2cell(X,1)
N= num2cell(X,[1,2])
